package com.bristua.mall.user.controller;

import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.enums.CommonCode;
import com.bristua.mall.common.utils.HandleResultUtil;
import com.bristua.mall.user.biz.FinushUserInfoBiz;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * Created by Administrator on 2019/5/12.
 */
@RestController
@Api(value="完善用户信息",tags={"完善用户信息"})
public class FinushUserController {
    @Autowired
    private FinushUserInfoBiz finushUserInfoBiz;

    @ApiOperation(value="完善用户信息")
    @PostMapping(value = "/api/finish/user")
    public Result finishUser(@RequestBody Map params){
        finushUserInfoBiz.finushUserInfo(params);
        return HandleResultUtil.commonResult(CommonCode.INSERT_SUCCESS.getCode(),CommonCode.INSERT_SUCCESS.getMsg());
    }
}
